PortraitManager = inherit(Singleton)
inherit(OptionFrame,PortraitManager)

function PortraitManager:constructor()
	OptionFrame.constructor(self)
	
	utFooDB.Portrait = utFooDB.Portrait == nil and {} or utFooDB.Portrait
	
	self.m_Portraits = {}
	
	self:AddPortrait("player")
	--self:AddPortrait("target")
	
end

function PortraitManager:AddPortrait(unit)
	assert ( type(unit) == "string", "r")
	self.m_Portraits[unit] = Portrait:new(unit)
end